/*
 * Copyright (c) XMEDIA. All rights reserved.
 */
#ifndef __XMEDIA_PLATFORM_H__
#define __XMEDIA_PLATFORM_H__

/* Chip ID */
#define REG_VERSION_ID           0x12020018

#define CHIPID_XM72050500       0x72050500
#define CHIPID_XM72050510       0x72050510
#define CHIPID_XM72050530       0x72050530
#define CHIPID_XM72050230       0x72050230
#define CHIPID_XM72020330       0x72020330
#define CHIPID_XM72050200       0x72050200
#define CHIPID_XM72050210       0x72050210
#define CHIPID_XM72050300       0x72050300
#define CHIPID_XM76050100       0x76050100
#define CHIPID_XM72020300       0x72020300

#define VERSIONID_XM7205V200    0x1
#define VERSIONID_XM7202V300    0x2
#define VERSIONID_XM7205V300    0x3
#define VERSIONID_XM7605V100    0x4
#define VERSIONID_XM7205V210    0x5
#define VERSIONID_XM7205V500    0x6
#define VERSIONID_XM7205V510    0x7
#define VERSIONID_XM7205V530    0x8
#define VERSIONID_XM7205V230    0xa
#define VERSIONID_XM7202V330    0xc

#define IO0_BASE                0x12080000
#define IO0_CFG1                0x4
#define IO0_CTRL                0xC

#define IO1_BASE                0x120280B0

#define LEVEL0                  0x23
#define LEVEL1                  0x0
#define IO0_CFG                 0x5

#define LEVEL1_0                0x230c75
#define LEVEL1_1                0xc75

#endif /* End of __XMEDIA_PLATFORM_H__ */
